package com.ushine.web.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ushine.web.base.model.relation.RoleAndDataPermissionDO;

import java.util.List;

/**
 * @Author: yls
 * @Date: 2022/02/15 23:16
 * @Description: 角色和数据权限关联
 * @Version 1.0
 */
public interface IRoleAndDataPermissionService extends IService<RoleAndDataPermissionDO> {

    /**
     * 功能描述:
     * 〈 批量添加角色和数据权限关联 〉
     *
     * @param roleAndDataPermissions 关联数据
     * @return : java.lang.Boolean
     * @author : yls
     * @date : 2022/02/15 23:19
     */
    Boolean insertBatchRoleAndDataPermissions(List<RoleAndDataPermissionDO> roleAndDataPermissions);

    /**
     * 功能描述:
     * 〈 根据角色【id】查询多个角色 〉
     *
     * @param roleId
     * @return : java.util.List<com.ushine.web.base.model.relation.RoleAndDataPermissionDO>
     * @author : yls
     * @date : 2022/02/15 23:29
     */
    List<RoleAndDataPermissionDO> listRoleAndDataPermissions(Long roleId);
}
